package com.bidevalution.support.util;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class OConvertUtil {
	public Double setScale(Double dbValue, int scale) {
		BigDecimal b = new BigDecimal(dbValue);
		return b.setScale(scale,RoundingMode.HALF_UP).doubleValue();
	}
	public static void main(String[] args) {
		System.out.println(new OConvertUtil().setScale(5555555.0, 2));;
	}
}
